package com.atguigu.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author durant
 * @create 2021-11-01 15:53
 */
@Controller
public class ViewController {
    @RequestMapping("/testThymeleafView")
    public String testThymeleafView(){

        return "success";
    }
    @RequestMapping("/testForward")
    public String testForward(){

        return "forward:/testThymeleafView";
    }
    @RequestMapping("/testRedirect")
    public String testRedirect(){

        return "redirect:/testThymeleafView";
    }
}
